
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>docker-compose简化docker命令 · 继松的书</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="jisong">
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-ace/ace.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-sectionx/sectionx.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../git/0-README.html" />
    
    
    <link rel="prev" href="docker-compose安装.html" />
    

    
    <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    <script src="../../gitbook/gitbook-plugin-graph/d3.min.js"></script>
    <script src="../../gitbook/gitbook-plugin-graph/function-plot.js"></script>    

    
        <link rel="shortcut icon" href='../../favicon.ico' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../favicon.ico' type="image/x-icon">
    
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://ji-song.gitee.io/cc" target="_blank" class="custom-link">Home</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                        <b>1.1.</b>
                    
                    继松的笔记
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Developer</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../../Developer/Flink/0-README.html">
            
                <a href="../../Developer/Flink/0-README.html">
            
                    
                        <b>2.1.</b>
                    
                    Flink
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../../Developer/Flink/or01-初学 Flink.html">
            
                <a href="../../Developer/Flink/or01-初学 Flink.html">
            
                    
                        <b>2.1.1.</b>
                    
                    初学 Flink
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../../Developer/Flink/or02-Flink中Keyby和线程数的疑问.html">
            
                <a href="../../Developer/Flink/or02-Flink中Keyby和线程数的疑问.html">
            
                    
                        <b>2.1.2.</b>
                    
                    Flink中Keyby和线程数的疑问
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../../Developer/Flink/or03-Flink-Spark-Storm的区别.html">
            
                <a href="../../Developer/Flink/or03-Flink-Spark-Storm的区别.html">
            
                    
                        <b>2.1.3.</b>
                    
                    Flink-Spark-Storm的区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../../Developer/Flink/or04-Flink 异常笔记.html">
            
                <a href="../../Developer/Flink/or04-Flink 异常笔记.html">
            
                    
                        <b>2.1.4.</b>
                    
                    Flink 异常笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../../Developer/JDK/0-README.html">
            
                <a href="../../Developer/JDK/0-README.html">
            
                    
                        <b>2.2.</b>
                    
                    JDK
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../../Developer/JDK/Lock/0-README.html">
            
                <a href="../../Developer/JDK/Lock/0-README.html">
            
                    
                        <b>2.2.1.</b>
                    
                    Lock
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1.1" data-path="../../Developer/JDK/Lock/AQS.html">
            
                <a href="../../Developer/JDK/Lock/AQS.html">
            
                    
                        <b>2.2.1.1.</b>
                    
                    AQS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.2" data-path="../../Developer/JDK/Lock/LinkedBlockingQueue.html">
            
                <a href="../../Developer/JDK/Lock/LinkedBlockingQueue.html">
            
                    
                        <b>2.2.1.2.</b>
                    
                    LinkedBlockingQueue
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.3" data-path="../../Developer/JDK/Lock/ReadWriteLock.html">
            
                <a href="../../Developer/JDK/Lock/ReadWriteLock.html">
            
                    
                        <b>2.2.1.3.</b>
                    
                    ReadWriteLock
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.4" data-path="../../Developer/JDK/Lock/[12090055]ReentrantLock.html">
            
                <a href="../../Developer/JDK/Lock/[12090055]ReentrantLock.html">
            
                    
                        <b>2.2.1.4.</b>
                    
                    ReentrantLock
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../../Developer/JDK/Period 时间坑.html">
            
                <a href="../../Developer/JDK/Period 时间坑.html">
            
                    
                        <b>2.2.2.</b>
                    
                    Period 时间坑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../../Developer/JDK/Pool/0-README.html">
            
                <a href="../../Developer/JDK/Pool/0-README.html">
            
                    
                        <b>2.2.3.</b>
                    
                    Pool
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.3.1" data-path="../../Developer/JDK/Pool/ThreadPoolExecutor.html">
            
                <a href="../../Developer/JDK/Pool/ThreadPoolExecutor.html">
            
                    
                        <b>2.2.3.1.</b>
                    
                    ThreadPoolExecutor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.2" data-path="../../Developer/JDK/Pool/多线程并发导致CPU100%的一种原因和解决方式.html">
            
                <a href="../../Developer/JDK/Pool/多线程并发导致CPU100%的一种原因和解决方式.html">
            
                    
                        <b>2.2.3.2.</b>
                    
                    多线程并发导致CPU100%的一种原因和解决方式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../../Developer/JDK/Proxy的工作原理[0%].html">
            
                <a href="../../Developer/JDK/Proxy的工作原理[0%].html">
            
                    
                        <b>2.2.4.</b>
                    
                    Proxy的工作原理[0%]
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../../Developer/JDK/Util/0-README.html">
            
                <a href="../../Developer/JDK/Util/0-README.html">
            
                    
                        <b>2.2.5.</b>
                    
                    Util
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.5.1" data-path="../../Developer/JDK/Util/HashMap.html">
            
                <a href="../../Developer/JDK/Util/HashMap.html">
            
                    
                        <b>2.2.5.1.</b>
                    
                    HashMap
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../../Developer/JVM/0-README.html">
            
                <a href="../../Developer/JVM/0-README.html">
            
                    
                        <b>2.3.</b>
                    
                    JVM
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../../Developer/JVM/or01-内存区域.html">
            
                <a href="../../Developer/JVM/or01-内存区域.html">
            
                    
                        <b>2.3.1.</b>
                    
                    内存区域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../../Developer/JVM/or02-内存模型.html">
            
                <a href="../../Developer/JVM/or02-内存模型.html">
            
                    
                        <b>2.3.2.</b>
                    
                    内存模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../../Developer/JVM/or03-内存优化.html">
            
                <a href="../../Developer/JVM/or03-内存优化.html">
            
                    
                        <b>2.3.3.</b>
                    
                    内存优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../../Developer/JVM/or04-JVM参数集.html">
            
                <a href="../../Developer/JVM/or04-JVM参数集.html">
            
                    
                        <b>2.3.4.</b>
                    
                    JVM参数集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../../Developer/JVM/or05-JVM指令集.html">
            
                <a href="../../Developer/JVM/or05-JVM指令集.html">
            
                    
                        <b>2.3.5.</b>
                    
                    JVM指令集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../../Developer/JVM/or06-垃圾收集器.html">
            
                <a href="../../Developer/JVM/or06-垃圾收集器.html">
            
                    
                        <b>2.3.6.</b>
                    
                    垃圾收集器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../../Developer/JVM/or07-垃圾收集器优化.html">
            
                <a href="../../Developer/JVM/or07-垃圾收集器优化.html">
            
                    
                        <b>2.3.7.</b>
                    
                    垃圾收集器优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../../Developer/JVM/or08-Arthus.html">
            
                <a href="../../Developer/JVM/or08-Arthus.html">
            
                    
                        <b>2.3.8.</b>
                    
                    Arthus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../../Developer/JVM/or09-Sychronized.html">
            
                <a href="../../Developer/JVM/or09-Sychronized.html">
            
                    
                        <b>2.3.9.</b>
                    
                    Sychronized
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../../Developer/Kafka/0-README.html">
            
                <a href="../../Developer/Kafka/0-README.html">
            
                    
                        <b>2.4.</b>
                    
                    Kafka
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../../Developer/Kafka/Kafka高吞吐量的原理[0%].html">
            
                <a href="../../Developer/Kafka/Kafka高吞吐量的原理[0%].html">
            
                    
                        <b>2.4.1.</b>
                    
                    Kafka高吞吐量的原理[0%]
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../../Developer/Kafka/kafka的消费时机.html">
            
                <a href="../../Developer/Kafka/kafka的消费时机.html">
            
                    
                        <b>2.4.2.</b>
                    
                    kafka的消费时机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../../Developer/Kafka/参数详解[1%].html">
            
                <a href="../../Developer/Kafka/参数详解[1%].html">
            
                    
                        <b>2.4.3.</b>
                    
                    参数详解[1%]
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../../Developer/Kafka/问题点[1%].html">
            
                <a href="../../Developer/Kafka/问题点[1%].html">
            
                    
                        <b>2.4.4.</b>
                    
                    问题点[1%]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../../Developer/MySQL/0-README.html">
            
                <a href="../../Developer/MySQL/0-README.html">
            
                    
                        <b>2.5.</b>
                    
                    MySQL
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../../Developer/MySQL/B树.html">
            
                <a href="../../Developer/MySQL/B树.html">
            
                    
                        <b>2.5.1.</b>
                    
                    B树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../../Developer/MySQL/MySQL 处理重复数据.html">
            
                <a href="../../Developer/MySQL/MySQL 处理重复数据.html">
            
                    
                        <b>2.5.2.</b>
                    
                    MySQL 处理重复数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../../Developer/MySQL/MySQL常用命令.html">
            
                <a href="../../Developer/MySQL/MySQL常用命令.html">
            
                    
                        <b>2.5.3.</b>
                    
                    MySQL常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.4" data-path="../../Developer/MySQL/MySQL数据类型.html">
            
                <a href="../../Developer/MySQL/MySQL数据类型.html">
            
                    
                        <b>2.5.4.</b>
                    
                    MySQL数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.5" data-path="../../Developer/MySQL/explain.html">
            
                <a href="../../Developer/MySQL/explain.html">
            
                    
                        <b>2.5.5.</b>
                    
                    explain
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.6" data-path="../../Developer/MySQL/写SQL的注意点.html">
            
                <a href="../../Developer/MySQL/写SQL的注意点.html">
            
                    
                        <b>2.5.6.</b>
                    
                    写SQL的注意点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../../Developer/Python/0-README.html">
            
                <a href="../../Developer/Python/0-README.html">
            
                    
                        <b>2.6.</b>
                    
                    Python
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../../Developer/Redis/0-README.html">
            
                <a href="../../Developer/Redis/0-README.html">
            
                    
                        <b>2.7.</b>
                    
                    Redis
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../../Developer/Redis/Jedis常见问题汇总.html">
            
                <a href="../../Developer/Redis/Jedis常见问题汇总.html">
            
                    
                        <b>2.7.1.</b>
                    
                    Jedis常见问题汇总
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="../../Developer/Redis/Redis info详解.html">
            
                <a href="../../Developer/Redis/Redis info详解.html">
            
                    
                        <b>2.7.2.</b>
                    
                    Redis info详解
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../../Developer/Spring/0-README.html">
            
                <a href="../../Developer/Spring/0-README.html">
            
                    
                        <b>2.8.</b>
                    
                    Spring
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="../../Developer/Spring/Spring AOP详解[0%].html">
            
                <a href="../../Developer/Spring/Spring AOP详解[0%].html">
            
                    
                        <b>2.8.1.</b>
                    
                    Spring AOP详解[0%]
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="../../Developer/Spring/Spring 容器里都装了哪些bean.html">
            
                <a href="../../Developer/Spring/Spring 容器里都装了哪些bean.html">
            
                    
                        <b>2.8.2.</b>
                    
                    Spring 容器里都装了哪些bean
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8.3" data-path="../../Developer/Spring/[11770408]Spring-Cache手动清缓存.html">
            
                <a href="../../Developer/Spring/[11770408]Spring-Cache手动清缓存.html">
            
                    
                        <b>2.8.3.</b>
                    
                    Spring-Cache手动清缓存
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../../Developer/kotlin/0-README.html">
            
                <a href="../../Developer/kotlin/0-README.html">
            
                    
                        <b>2.9.</b>
                    
                    kotlin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="../../Developer/工作心得/0-README.html">
            
                <a href="../../Developer/工作心得/0-README.html">
            
                    
                        <b>2.10.</b>
                    
                    工作心得
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="../../Developer/工作心得/HttpClient高并发下性能优化-http连接池.html">
            
                <a href="../../Developer/工作心得/HttpClient高并发下性能优化-http连接池.html">
            
                    
                        <b>2.10.1.</b>
                    
                    HttpClient高并发下性能优化-http连接池
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="../../Developer/工作心得/List 快速去重.html">
            
                <a href="../../Developer/工作心得/List 快速去重.html">
            
                    
                        <b>2.10.2.</b>
                    
                    List 快速去重
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="../../Developer/工作心得/MAVEN依赖问题.html">
            
                <a href="../../Developer/工作心得/MAVEN依赖问题.html">
            
                    
                        <b>2.10.3.</b>
                    
                    MAVEN依赖问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.4" data-path="../../Developer/工作心得/MyBatis使用JDK8的日期类Handler.html">
            
                <a href="../../Developer/工作心得/MyBatis使用JDK8的日期类Handler.html">
            
                    
                        <b>2.10.4.</b>
                    
                    MyBatis使用JDK8的日期类Handler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.5" data-path="../../Developer/工作心得/Mybatis缓存笔记.html">
            
                <a href="../../Developer/工作心得/Mybatis缓存笔记.html">
            
                    
                        <b>2.10.5.</b>
                    
                    Mybatis缓存笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.6" data-path="../../Developer/工作心得/Mybatis配置详解.html">
            
                <a href="../../Developer/工作心得/Mybatis配置详解.html">
            
                    
                        <b>2.10.6.</b>
                    
                    Mybatis配置详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.7" data-path="../../Developer/工作心得/log4j动态修改日志级别.html">
            
                <a href="../../Developer/工作心得/log4j动态修改日志级别.html">
            
                    
                        <b>2.10.7.</b>
                    
                    log4j动态修改日志级别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.8" data-path="../../Developer/工作心得/收藏的文章.html">
            
                <a href="../../Developer/工作心得/收藏的文章.html">
            
                    
                        <b>2.10.8.</b>
                    
                    收藏的文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.9" data-path="../../Developer/工作心得/数据不一致问题.html">
            
                <a href="../../Developer/工作心得/数据不一致问题.html">
            
                    
                        <b>2.10.9.</b>
                    
                    数据不一致问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.10" data-path="../../Developer/工作心得/站会制度.html">
            
                <a href="../../Developer/工作心得/站会制度.html">
            
                    
                        <b>2.10.10.</b>
                    
                    站会制度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../../Developer/微服务/0-README.html">
            
                <a href="../../Developer/微服务/0-README.html">
            
                    
                        <b>2.11.</b>
                    
                    微服务
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.11.1" data-path="../../Developer/微服务/dubbo-注入spring为空.html">
            
                <a href="../../Developer/微服务/dubbo-注入spring为空.html">
            
                    
                        <b>2.11.1.</b>
                    
                    dubbo-注入spring为空
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11.2" data-path="../../Developer/微服务/dubbo在zk中都存了哪些东西[10%].html">
            
                <a href="../../Developer/微服务/dubbo在zk中都存了哪些东西[10%].html">
            
                    
                        <b>2.11.2.</b>
                    
                    dubbo在zk中都存了哪些东西[10%]
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11.3" data-path="../../Developer/微服务/zookeeper命令[1%].html">
            
                <a href="../../Developer/微服务/zookeeper命令[1%].html">
            
                    
                        <b>2.11.3.</b>
                    
                    zookeeper命令[1%]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">OS</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../../OS/Linux/0-README.html">
            
                <a href="../../OS/Linux/0-README.html">
            
                    
                        <b>3.1.</b>
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="../../OS/Linux/Deepin Linux安装wine5.0.html">
            
                <a href="../../OS/Linux/Deepin Linux安装wine5.0.html">
            
                    
                        <b>3.1.1.</b>
                    
                    Deepin Linux安装wine5.0
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="../../OS/Linux/Deepin修改使用aliyun的软件源.html">
            
                <a href="../../OS/Linux/Deepin修改使用aliyun的软件源.html">
            
                    
                        <b>3.1.2.</b>
                    
                    Deepin修改使用aliyun的软件源
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="../../OS/Linux/Linux最常用命令.html">
            
                <a href="../../OS/Linux/Linux最常用命令.html">
            
                    
                        <b>3.1.3.</b>
                    
                    Linux最常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.4" data-path="../../OS/Linux/TOP命令.html">
            
                <a href="../../OS/Linux/TOP命令.html">
            
                    
                        <b>3.1.4.</b>
                    
                    TOP命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.5" data-path="../../OS/Linux/bash_alias.html">
            
                <a href="../../OS/Linux/bash_alias.html">
            
                    
                        <b>3.1.5.</b>
                    
                    bash_alias
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.6" data-path="../../OS/Linux/dpkg.html">
            
                <a href="../../OS/Linux/dpkg.html">
            
                    
                        <b>3.1.6.</b>
                    
                    dpkg
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.7" data-path="../../OS/Linux/find.html">
            
                <a href="../../OS/Linux/find.html">
            
                    
                        <b>3.1.7.</b>
                    
                    find
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.8" data-path="../../OS/Linux/oh-my-zsh.html">
            
                <a href="../../OS/Linux/oh-my-zsh.html">
            
                    
                        <b>3.1.8.</b>
                    
                    oh-my-zsh
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../../OS/Mac/0-README.html">
            
                <a href="../../OS/Mac/0-README.html">
            
                    
                        <b>3.2.</b>
                    
                    Mac
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="../../OS/Mac/MacBook安装brew.html">
            
                <a href="../../OS/Mac/MacBook安装brew.html">
            
                    
                        <b>3.2.1.</b>
                    
                    MacBook安装brew
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../../OS/Windows/0-README.html">
            
                <a href="../../OS/Windows/0-README.html">
            
                    
                        <b>3.3.</b>
                    
                    Windows
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="../../OS/Windows/WSL的ssh-agent问题.html">
            
                <a href="../../OS/Windows/WSL的ssh-agent问题.html">
            
                    
                        <b>3.3.1.</b>
                    
                    WSL的ssh-agent问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="../../OS/Windows/windows10使用任务计划提醒自己.html">
            
                <a href="../../OS/Windows/windows10使用任务计划提醒自己.html">
            
                    
                        <b>3.3.2.</b>
                    
                    windows10使用任务计划提醒自己
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="../../OS/Windows/win下的终端使用指南.html">
            
                <a href="../../OS/Windows/win下的终端使用指南.html">
            
                    
                        <b>3.3.3.</b>
                    
                    win下的终端使用指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">TOOLS</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../IDEA/0-README.html">
            
                <a href="../IDEA/0-README.html">
            
                    
                        <b>4.1.</b>
                    
                    IDEA
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../IDEA/IDEA配置终端.html">
            
                <a href="../IDEA/IDEA配置终端.html">
            
                    
                        <b>4.1.1.</b>
                    
                    IDEA配置终端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../IDEA/去掉重复代码的提醒.html">
            
                <a href="../IDEA/去掉重复代码的提醒.html">
            
                    
                        <b>4.1.2.</b>
                    
                    去掉重复代码的提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" data-path="../IDEA/字体JetBrain mono.html">
            
                <a href="../IDEA/字体JetBrain mono.html">
            
                    
                        <b>4.1.3.</b>
                    
                    字体JetBrain mono
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" data-path="../IDEA/常用插件.html">
            
                <a href="../IDEA/常用插件.html">
            
                    
                        <b>4.1.4.</b>
                    
                    常用插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" data-path="../IDEA/自定义TODO.html">
            
                <a href="../IDEA/自定义TODO.html">
            
                    
                        <b>4.1.5.</b>
                    
                    自定义TODO
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../checkstyle/0-README.html">
            
                <a href="../checkstyle/0-README.html">
            
                    
                        <b>4.2.</b>
                    
                    checkstyle
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../checkstyle/checkstyle.xml.html">
            
                <a href="../checkstyle/checkstyle.xml.html">
            
                    
                        <b>4.2.1.</b>
                    
                    checkstyle.xml
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../checkstyle/githook使用checkstyle.html">
            
                <a href="../checkstyle/githook使用checkstyle.html">
            
                    
                        <b>4.2.2.</b>
                    
                    githook使用checkstyle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../checkstyle/pre-commit.html">
            
                <a href="../checkstyle/pre-commit.html">
            
                    
                        <b>4.2.3.</b>
                    
                    pre-commit
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="0-README.html">
            
                <a href="0-README.html">
            
                    
                        <b>4.3.</b>
                    
                    docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1" data-path="Docker 常用命令.html">
            
                <a href="Docker 常用命令.html">
            
                    
                        <b>4.3.1.</b>
                    
                    Docker 常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2" data-path="deepin中安装docker.html">
            
                <a href="deepin中安装docker.html">
            
                    
                        <b>4.3.2.</b>
                    
                    deepin中安装docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3" data-path="docker-compose安装.html">
            
                <a href="docker-compose安装.html">
            
                    
                        <b>4.3.3.</b>
                    
                    docker-compose安装
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="4.3.4" data-path="docker-compose简化docker命令.html">
            
                <a href="docker-compose简化docker命令.html">
            
                    
                        <b>4.3.4.</b>
                    
                    docker-compose简化docker命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../git/0-README.html">
            
                <a href="../git/0-README.html">
            
                    
                        <b>4.4.</b>
                    
                    git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.4.1" data-path="../git/[11769588]git配置多仓库.html">
            
                <a href="../git/[11769588]git配置多仓库.html">
            
                    
                        <b>4.4.1.</b>
                    
                    git配置多仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.2" data-path="../git/各GIt仓库的api.html">
            
                <a href="../git/各GIt仓库的api.html">
            
                    
                        <b>4.4.2.</b>
                    
                    各GIt仓库的api
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../ssh/0-README.html">
            
                <a href="../ssh/0-README.html">
            
                    
                        <b>4.5.</b>
                    
                    ssh
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.5.1" data-path="../ssh/ssh配置公钥私钥登录服务器.html">
            
                <a href="../ssh/ssh配置公钥私钥登录服务器.html">
            
                    
                        <b>4.5.1.</b>
                    
                    ssh配置公钥私钥登录服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5.2" data-path="../ssh/ssh配置跳板机-带密钥.html">
            
                <a href="../ssh/ssh配置跳板机-带密钥.html">
            
                    
                        <b>4.5.2.</b>
                    
                    ssh配置跳板机-带密钥
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="../sublime/0-README.html">
            
                <a href="../sublime/0-README.html">
            
                    
                        <b>4.6.</b>
                    
                    sublime
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.6.1" data-path="../sublime/sublime使用笔记.html">
            
                <a href="../sublime/sublime使用笔记.html">
            
                    
                        <b>4.6.1.</b>
                    
                    sublime使用笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6.2" data-path="../sublime/sublime替换本地记事本.html">
            
                <a href="../sublime/sublime替换本地记事本.html">
            
                    
                        <b>4.6.2.</b>
                    
                    sublime替换本地记事本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6.3" data-path="../sublime/去掉升级提醒.html">
            
                <a href="../sublime/去掉升级提醒.html">
            
                    
                        <b>4.6.3.</b>
                    
                    去掉升级提醒
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.7" >
            
                <span>
            
                    
                        <b>4.7.</b>
                    
                    Spring
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="4.8" >
            
                <span>
            
                    
                        <b>4.8.</b>
                    
                    cglib
            
                </span>
            

            
        </li>
    

    
        
        <li class="header">前端</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../../前端/blog/0-README.html">
            
                <a href="../../前端/blog/0-README.html">
            
                    
                        <b>5.1.</b>
                    
                    blog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../../前端/chrome/0-README.html">
            
                <a href="../../前端/chrome/0-README.html">
            
                    
                        <b>5.2.</b>
                    
                    chrome
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.2.1" data-path="../../前端/chrome/or01-扩展插件开发.html">
            
                <a href="../../前端/chrome/or01-扩展插件开发.html">
            
                    
                        <b>5.2.1.</b>
                    
                    扩展插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2.2" data-path="../../前端/chrome/or02-禁用chrome的快捷键.html">
            
                <a href="../../前端/chrome/or02-禁用chrome的快捷键.html">
            
                    
                        <b>5.2.2.</b>
                    
                    禁用chrome的快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2.3" data-path="../../前端/chrome/or03-小工具插件.html">
            
                <a href="../../前端/chrome/or03-小工具插件.html">
            
                    
                        <b>5.2.3.</b>
                    
                    小工具插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../../前端/gitbook/0-README.html">
            
                <a href="../../前端/gitbook/0-README.html">
            
                    
                        <b>5.3.</b>
                    
                    gitbook
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">小记</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../../小记/游戏/0-README.html">
            
                <a href="../../小记/游戏/0-README.html">
            
                    
                        <b>6.1.</b>
                    
                    游戏
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1.1" data-path="../../小记/游戏/[12090043]重新机兵回归(MMR">
            
                <span>
            
                    
                        <b>6.1.1.</b>
                    
                    重新机兵回归(MMR)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.2" data-path="../../小记/游戏/上古卷轴5.html">
            
                <a href="../../小记/游戏/上古卷轴5.html">
            
                    
                        <b>6.1.2.</b>
                    
                    上古卷轴5
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../../小记/电影/0-README.html">
            
                <a href="../../小记/电影/0-README.html">
            
                    
                        <b>6.2.</b>
                    
                    电影
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.2.1" data-path="../../小记/电影/动画电影-和谐.html">
            
                <a href="../../小记/电影/动画电影-和谐.html">
            
                    
                        <b>6.2.1.</b>
                    
                    动画电影-和谐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.2" data-path="../../小记/电影/哈利波特.html">
            
                <a href="../../小记/电影/哈利波特.html">
            
                    
                        <b>6.2.2.</b>
                    
                    哈利波特
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.3" data-path="../../小记/电影/永无止镜.html">
            
                <a href="../../小记/电影/永无止镜.html">
            
                    
                        <b>6.2.3.</b>
                    
                    永无止镜
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.4" data-path="../../小记/电影/黑客帝国.html">
            
                <a href="../../小记/电影/黑客帝国.html">
            
                    
                        <b>6.2.4.</b>
                    
                    黑客帝国
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="../../小记/目标/0-README.html">
            
                <a href="../../小记/目标/0-README.html">
            
                    
                        <b>6.3.</b>
                    
                    目标
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.3.1" data-path="../../小记/目标/淘宝店.html">
            
                <a href="../../小记/目标/淘宝店.html">
            
                    
                        <b>6.3.1.</b>
                    
                    淘宝店
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="../../小记/眼球震颤/0-README.html">
            
                <a href="../../小记/眼球震颤/0-README.html">
            
                    
                        <b>6.4.</b>
                    
                    眼球震颤
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >docker-compose简化docker命令</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="docker-compose&#x7B80;&#x5316;docker&#x547D;&#x4EE4;"><a name="docker-compose&#x7B80;&#x5316;docker&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#docker-compose&#x7B80;&#x5316;docker&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>docker-compose&#x7B80;&#x5316;docker&#x547D;&#x4EE4;</h2>
<h5 id="&#x5148;&#x770B;&#x4E2A;&#x4F8B;&#x5B50;"><a name="&#x5148;&#x770B;&#x4E2A;&#x4F8B;&#x5B50;" class="anchor-navigation-ex-anchor" href="#&#x5148;&#x770B;&#x4E2A;&#x4F8B;&#x5B50;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5148;&#x770B;&#x4E2A;&#x4F8B;&#x5B50;</h5>
<p>docker-compose&#x7684;&#x6587;&#x4EF6;&#x540D;&#x4E3A;: <code>docker-compose.yml</code> , &#x8FD9;&#x4E2A;&#x662F;&#x56FA;&#x5B9A;&#x8BBE;&#x7F6E; , <strong>&#x4E0D;&#x80FD;&#x53D8;&#x5316;,&#x4E0D;&#x80FD;&#x6307;&#x5B9A;</strong></p>
<p>&#x4E0B;&#x9762;&#x662F;&#x6700;&#x7B80;&#x5355;&#x7684;&#x4E00;&#x4E2A;&#x914D;&#x7F6E; , &#x542F;&#x52A8;&#x4E00;&#x4E2A;<code>zookeeper</code>. &#x542F;&#x7528;&#x4E00;&#x4E2A;&#x670D;&#x52A1; <code>zk</code>.</p>
<pre class="language-"><code>version: &apos;3&apos;
services:
  zk:
    image: zookeeper
</code></pre><p>&#x7136;&#x540E;&#x4F7F;&#x7528;&#x547D;&#x4EE4;:</p>
<pre class="language-"><code>docker-compose up -d
</code></pre><p>&#x5C31;&#x53EF;&#x4EE5;&#x542F;&#x52A8;&#x7A97;&#x53E3;&#x4E86; . &#x7B80;&#x5355;&#x5FEB;&#x6377;. &#x6CA1;&#x6709;<code>run</code> , &#x547D;&#x4EE4;&#x7B80;&#x5355;&#x597D;&#x8BB0;. </p>
<h3 id="yml-&#x914D;&#x7F6E;&#x6307;&#x4EE4;&#x53C2;&#x8003;"><a name="yml-&#x914D;&#x7F6E;&#x6307;&#x4EE4;&#x53C2;&#x8003;" class="anchor-navigation-ex-anchor" href="#yml-&#x914D;&#x7F6E;&#x6307;&#x4EE4;&#x53C2;&#x8003;"><i class="fa fa-link" aria-hidden="true"></i></a>yml &#x914D;&#x7F6E;&#x6307;&#x4EE4;&#x53C2;&#x8003;</h3>
<h4 id="version"><a name="version" class="anchor-navigation-ex-anchor" href="#version"><i class="fa fa-link" aria-hidden="true"></i></a>version</h4>
<p>&#x6307;&#x5B9A;&#x672C; yml &#x4F9D;&#x4ECE;&#x7684; compose &#x54EA;&#x4E2A;&#x7248;&#x672C;&#x5236;&#x5B9A;&#x7684;&#x3002;</p>
<h4 id="build"><a name="build" class="anchor-navigation-ex-anchor" href="#build"><i class="fa fa-link" aria-hidden="true"></i></a>build</h4>
<p>&#x6307;&#x5B9A;&#x4E3A;&#x6784;&#x5EFA;&#x955C;&#x50CF;&#x4E0A;&#x4E0B;&#x6587;&#x8DEF;&#x5F84;&#xFF1A;</p>
<p>&#x4F8B;&#x5982; webapp &#x670D;&#x52A1;&#xFF0C;&#x6307;&#x5B9A;&#x4E3A;&#x4ECE;&#x4E0A;&#x4E0B;&#x6587;&#x8DEF;&#x5F84; ./dir/Dockerfile &#x6240;&#x6784;&#x5EFA;&#x7684;&#x955C;&#x50CF;&#xFF1A;</p>
<pre class="language-"><code>version: &quot;3.7&quot;
services:
  webapp:
    build: ./dir
</code></pre><p>&#x6216;&#x8005;&#xFF0C;&#x4F5C;&#x4E3A;&#x5177;&#x6709;&#x5728;&#x4E0A;&#x4E0B;&#x6587;&#x6307;&#x5B9A;&#x7684;&#x8DEF;&#x5F84;&#x7684;&#x5BF9;&#x8C61;&#xFF0C;&#x4EE5;&#x53CA;&#x53EF;&#x9009;&#x7684; Dockerfile &#x548C; args&#xFF1A;</p>
<pre class="language-"><code>version: &quot;3.7&quot;
services:
  webapp:
    build:
      context: ./dir
      dockerfile: Dockerfile-alternate
      args:
        buildno: 1
      labels:
        - &quot;com.example.description=Accounting webapp&quot;
        - &quot;com.example.department=Finance&quot;
        - &quot;com.example.label-with-empty-value&quot;
      target: prod
</code></pre><ul>
<li>context&#xFF1A;&#x4E0A;&#x4E0B;&#x6587;&#x8DEF;&#x5F84;&#x3002;</li>
<li>dockerfile&#xFF1A;&#x6307;&#x5B9A;&#x6784;&#x5EFA;&#x955C;&#x50CF;&#x7684; Dockerfile &#x6587;&#x4EF6;&#x540D;&#x3002;</li>
<li>args&#xFF1A;&#x6DFB;&#x52A0;&#x6784;&#x5EFA;&#x53C2;&#x6570;&#xFF0C;&#x8FD9;&#x662F;&#x53EA;&#x80FD;&#x5728;&#x6784;&#x5EFA;&#x8FC7;&#x7A0B;&#x4E2D;&#x8BBF;&#x95EE;&#x7684;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x3002;</li>
<li>labels&#xFF1A;&#x8BBE;&#x7F6E;&#x6784;&#x5EFA;&#x955C;&#x50CF;&#x7684;&#x6807;&#x7B7E;&#x3002;</li>
<li>target&#xFF1A;&#x591A;&#x5C42;&#x6784;&#x5EFA;&#xFF0C;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x6784;&#x5EFA;&#x54EA;&#x4E00;&#x5C42;&#x3002;<h4 id="capadd&#xFF0C;capdrop"><a name="capadd&#xFF0C;capdrop" class="anchor-navigation-ex-anchor" href="#capadd&#xFF0C;capdrop"><i class="fa fa-link" aria-hidden="true"></i></a>cap_add&#xFF0C;cap_drop</h4>
&#x6DFB;&#x52A0;&#x6216;&#x5220;&#x9664;&#x5BB9;&#x5668;&#x62E5;&#x6709;&#x7684;&#x5BBF;&#x4E3B;&#x673A;&#x7684;&#x5185;&#x6838;&#x529F;&#x80FD;&#x3002;
```
cap_add:<ul>
<li>ALL # &#x5F00;&#x542F;&#x5168;&#x90E8;&#x6743;&#x9650;</li>
</ul>
</li>
</ul>
<p>cap_drop:</p>
<ul>
<li>SYS_PTRACE # &#x5173;&#x95ED; ptrace&#x6743;&#x9650;<pre class="language-"><code>#### cgroup_parent
&#x4E3A;&#x5BB9;&#x5668;&#x6307;&#x5B9A;&#x7236; cgroup &#x7EC4;&#xFF0C;&#x610F;&#x5473;&#x7740;&#x5C06;&#x7EE7;&#x627F;&#x8BE5;&#x7EC4;&#x7684;&#x8D44;&#x6E90;&#x9650;&#x5236;&#x3002;
</code></pre>cgroup_parent: m-executor-abcd<pre class="language-"><code>#### command
&#x8986;&#x76D6;&#x5BB9;&#x5668;&#x542F;&#x52A8;&#x7684;&#x9ED8;&#x8BA4;&#x547D;&#x4EE4;&#x3002;
</code></pre>command: [&quot;bundle&quot;, &quot;exec&quot;, &quot;thin&quot;, &quot;-p&quot;, &quot;3000&quot;]<pre class="language-"><code>#### container_name
&#x6307;&#x5B9A;&#x81EA;&#x5B9A;&#x4E49;&#x5BB9;&#x5668;&#x540D;&#x79F0;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x751F;&#x6210;&#x7684;&#x9ED8;&#x8BA4;&#x540D;&#x79F0;&#x3002;
</code></pre>container_name: my-web-container
```<h4 id="dependson"><a name="dependson" class="anchor-navigation-ex-anchor" href="#dependson"><i class="fa fa-link" aria-hidden="true"></i></a>depends_on</h4>
&#x8BBE;&#x7F6E;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#x3002;</li>
</ul>
<ul>
<li>docker-compose up &#xFF1A;&#x4EE5;&#x4F9D;&#x8D56;&#x6027;&#x987A;&#x5E8F;&#x542F;&#x52A8;&#x670D;&#x52A1;&#x3002;&#x5728;&#x4EE5;&#x4E0B;&#x793A;&#x4F8B;&#x4E2D;&#xFF0C;&#x5148;&#x542F;&#x52A8; db &#x548C; redis &#xFF0C;&#x624D;&#x4F1A;&#x542F;&#x52A8; web&#x3002;</li>
<li>docker-compose up SERVICE &#xFF1A;&#x81EA;&#x52A8;&#x5305;&#x542B; SERVICE &#x7684;&#x4F9D;&#x8D56;&#x9879;&#x3002;&#x5728;&#x4EE5;&#x4E0B;&#x793A;&#x4F8B;&#x4E2D;&#xFF0C;docker-compose up web &#x8FD8;&#x5C06;&#x521B;&#x5EFA;&#x5E76;&#x542F;&#x52A8; db &#x548C; redis&#x3002;</li>
<li>docker-compose stop &#xFF1A;&#x6309;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#x987A;&#x5E8F;&#x505C;&#x6B62;&#x670D;&#x52A1;&#x3002;&#x5728;&#x4EE5;&#x4E0B;&#x793A;&#x4F8B;&#x4E2D;&#xFF0C;web &#x5728; db &#x548C; redis &#x4E4B;&#x524D;&#x505C;&#x6B62;&#x3002;<pre class="language-"><code>version: &quot;3.7&quot;
services:
web:
  build: .
  depends_on:
    - db
    - redis
redis:
  image: redis
db:
  image: postgres
</code></pre>&#x6CE8;&#x610F;&#xFF1A;web &#x670D;&#x52A1;&#x4E0D;&#x4F1A;&#x7B49;&#x5F85; redis db &#x5B8C;&#x5168;&#x542F;&#x52A8; &#x4E4B;&#x540E;&#x624D;&#x542F;&#x52A8;&#x3002;</li>
</ul>
<h4 id="deploy"><a name="deploy" class="anchor-navigation-ex-anchor" href="#deploy"><i class="fa fa-link" aria-hidden="true"></i></a>deploy</h4>
<p>&#x6307;&#x5B9A;&#x4E0E;&#x670D;&#x52A1;&#x7684;&#x90E8;&#x7F72;&#x548C;&#x8FD0;&#x884C;&#x6709;&#x5173;&#x7684;&#x914D;&#x7F6E;&#x3002;&#x53EA;&#x5728; swarm &#x6A21;&#x5F0F;&#x4E0B;&#x624D;&#x4F1A;&#x6709;&#x7528;&#x3002;</p>
<pre class="language-"><code>version: &quot;3.7&quot;
services:
  redis:
    image: redis:alpine
    deploy:
      mode&#xFF1A;replicated
      replicas: 6
      endpoint_mode: dnsrr
      labels: 
        description: &quot;This redis service label&quot;
      resources:
        limits:
          cpus: &apos;0.50&apos;
          memory: 50M
        reservations:
          cpus: &apos;0.25&apos;
          memory: 20M
      restart_policy:
        condition: on-failure
        delay: 5s
        max_attempts: 3
        window: 120s
</code></pre><p>&#x53EF;&#x4EE5;&#x9009;&#x53C2;&#x6570;&#xFF1A;</p>
<ul>
<li>endpoint_mode&#xFF1A;&#x8BBF;&#x95EE;&#x96C6;&#x7FA4;&#x670D;&#x52A1;&#x7684;&#x65B9;&#x5F0F;&#x3002;<pre class="language-"><code>endpoint_mode: vip 
# Docker &#x96C6;&#x7FA4;&#x670D;&#x52A1;&#x4E00;&#x4E2A;&#x5BF9;&#x5916;&#x7684;&#x865A;&#x62DF; ip&#x3002;&#x6240;&#x6709;&#x7684;&#x8BF7;&#x6C42;&#x90FD;&#x4F1A;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;&#x865A;&#x62DF; ip &#x5230;&#x8FBE;&#x96C6;&#x7FA4;&#x670D;&#x52A1;&#x5185;&#x90E8;&#x7684;&#x673A;&#x5668;&#x3002;
endpoint_mode: dnsrr
# DNS &#x8F6E;&#x8BE2;&#xFF08;DNSRR&#xFF09;&#x3002;&#x6240;&#x6709;&#x7684;&#x8BF7;&#x6C42;&#x4F1A;&#x81EA;&#x52A8;&#x8F6E;&#x8BE2;&#x83B7;&#x53D6;&#x5230;&#x96C6;&#x7FA4; ip &#x5217;&#x8868;&#x4E2D;&#x7684;&#x4E00;&#x4E2A; ip &#x5730;&#x5740;&#x3002;
</code></pre></li>
<li><p>labels&#xFF1A;&#x5728;&#x670D;&#x52A1;&#x4E0A;&#x8BBE;&#x7F6E;&#x6807;&#x7B7E;&#x3002;&#x53EF;&#x4EE5;&#x7528;&#x5BB9;&#x5668;&#x4E0A;&#x7684; labels&#xFF08;&#x8DDF; deploy &#x540C;&#x7EA7;&#x7684;&#x914D;&#x7F6E;&#xFF09; &#x8986;&#x76D6; deploy &#x4E0B;&#x7684; labels&#x3002;</p>
</li>
<li><p>mode&#xFF1A;&#x6307;&#x5B9A;&#x670D;&#x52A1;&#x63D0;&#x4F9B;&#x7684;&#x6A21;&#x5F0F;&#x3002;</p>
<ul>
<li><p>replicated&#xFF1A;&#x590D;&#x5236;&#x670D;&#x52A1;&#xFF0C;&#x590D;&#x5236;&#x6307;&#x5B9A;&#x670D;&#x52A1;&#x5230;&#x96C6;&#x7FA4;&#x7684;&#x673A;&#x5668;&#x4E0A;&#x3002;</p>
</li>
<li><p>global&#xFF1A;&#x5168;&#x5C40;&#x670D;&#x52A1;&#xFF0C;&#x670D;&#x52A1;&#x5C06;&#x90E8;&#x7F72;&#x81F3;&#x96C6;&#x7FA4;&#x7684;&#x6BCF;&#x4E2A;&#x8282;&#x70B9;&#x3002;</p>
</li>
<li><p>&#x56FE;&#x89E3;&#xFF1A;&#x4E0B;&#x56FE;&#x4E2D;&#x9EC4;&#x8272;&#x7684;&#x65B9;&#x5757;&#x662F; replicated &#x6A21;&#x5F0F;&#x7684;&#x8FD0;&#x884C;&#x60C5;&#x51B5;&#xFF0C;&#x7070;&#x8272;&#x65B9;&#x5757;&#x662F; global &#x6A21;&#x5F0F;&#x7684;&#x8FD0;&#x884C;&#x60C5;&#x51B5;&#x3002;</p>
</li>
</ul>
</li>
</ul>
<p><img src="../../assets/docker-composex.png" alt=""></p>
<ul>
<li><p>replicas&#xFF1A;mode &#x4E3A; replicated &#x65F6;&#xFF0C;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x6B64;&#x53C2;&#x6570;&#x914D;&#x7F6E;&#x5177;&#x4F53;&#x8FD0;&#x884C;&#x7684;&#x8282;&#x70B9;&#x6570;&#x91CF;&#x3002;</p>
</li>
<li><p>resources&#xFF1A;&#x914D;&#x7F6E;&#x670D;&#x52A1;&#x5668;&#x8D44;&#x6E90;&#x4F7F;&#x7528;&#x7684;&#x9650;&#x5236;&#xFF0C;&#x4F8B;&#x5982;&#x4E0A;&#x4F8B;&#x5B50;&#xFF0C;&#x914D;&#x7F6E; redis &#x96C6;&#x7FA4;&#x8FD0;&#x884C;&#x9700;&#x8981;&#x7684; cpu &#x7684;&#x767E;&#x5206;&#x6BD4; &#x548C; &#x5185;&#x5B58;&#x7684;&#x5360;&#x7528;&#x3002;&#x907F;&#x514D;&#x5360;&#x7528;&#x8D44;&#x6E90;&#x8FC7;&#x9AD8;&#x51FA;&#x73B0;&#x5F02;&#x5E38;&#x3002;</p>
</li>
<li><p>restart_policy&#xFF1A;&#x914D;&#x7F6E;&#x5982;&#x4F55;&#x5728;&#x9000;&#x51FA;&#x5BB9;&#x5668;&#x65F6;&#x91CD;&#x65B0;&#x542F;&#x52A8;&#x5BB9;&#x5668;&#x3002;</p>
<ul>
<li>condition&#xFF1A;&#x53EF;&#x9009; none&#xFF0C;on-failure &#x6216;&#x8005; any&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF1A;any&#xFF09;&#x3002;</li>
<li>delay&#xFF1A;&#x8BBE;&#x7F6E;&#x591A;&#x4E45;&#x4E4B;&#x540E;&#x91CD;&#x542F;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF1A;0&#xFF09;&#x3002;</li>
<li>max_attempts&#xFF1A;&#x5C1D;&#x8BD5;&#x91CD;&#x65B0;&#x542F;&#x52A8;&#x5BB9;&#x5668;&#x7684;&#x6B21;&#x6570;&#xFF0C;&#x8D85;&#x51FA;&#x6B21;&#x6570;&#xFF0C;&#x5219;&#x4E0D;&#x518D;&#x5C1D;&#x8BD5;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF1A;&#x4E00;&#x76F4;&#x91CD;&#x8BD5;&#xFF09;&#x3002;</li>
<li>window&#xFF1A;&#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x91CD;&#x542F;&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF1A;0&#xFF09;&#x3002;</li>
</ul>
</li>
<li><p>rollback_config&#xFF1A;&#x914D;&#x7F6E;&#x5728;&#x66F4;&#x65B0;&#x5931;&#x8D25;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x5E94;&#x5982;&#x4F55;&#x56DE;&#x6EDA;&#x670D;&#x52A1;&#x3002;</p>
<ul>
<li>parallelism&#xFF1A;&#x4E00;&#x6B21;&#x8981;&#x56DE;&#x6EDA;&#x7684;&#x5BB9;&#x5668;&#x6570;&#x3002;&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x4E3A;0&#xFF0C;&#x5219;&#x6240;&#x6709;&#x5BB9;&#x5668;&#x5C06;&#x540C;&#x65F6;&#x56DE;&#x6EDA;&#x3002;</li>
<li>delay&#xFF1A;&#x6BCF;&#x4E2A;&#x5BB9;&#x5668;&#x7EC4;&#x56DE;&#x6EDA;&#x4E4B;&#x95F4;&#x7B49;&#x5F85;&#x7684;&#x65F6;&#x95F4;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;0s&#xFF09;&#x3002;</li>
<li>failure_action&#xFF1A;&#x5982;&#x679C;&#x56DE;&#x6EDA;&#x5931;&#x8D25;&#xFF0C;&#x8BE5;&#x600E;&#x4E48;&#x529E;&#x3002;&#x5176;&#x4E2D;&#x4E00;&#x4E2A; continue &#x6216;&#x8005; pause&#xFF08;&#x9ED8;&#x8BA4;pause&#xFF09;&#x3002;</li>
<li>monitor&#xFF1A;&#x6BCF;&#x4E2A;&#x5BB9;&#x5668;&#x66F4;&#x65B0;&#x540E;&#xFF0C;&#x6301;&#x7EED;&#x89C2;&#x5BDF;&#x662F;&#x5426;&#x5931;&#x8D25;&#x4E86;&#x7684;&#x65F6;&#x95F4; (ns|us|ms|s|m|h)&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;0s&#xFF09;&#x3002;</li>
<li>max_failure_ratio&#xFF1A;&#x5728;&#x56DE;&#x6EDA;&#x671F;&#x95F4;&#x53EF;&#x4EE5;&#x5BB9;&#x5FCD;&#x7684;&#x6545;&#x969C;&#x7387;&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;0&#xFF09;&#x3002;</li>
<li>order&#xFF1A;&#x56DE;&#x6EDA;&#x671F;&#x95F4;&#x7684;&#x64CD;&#x4F5C;&#x987A;&#x5E8F;&#x3002;&#x5176;&#x4E2D;&#x4E00;&#x4E2A; stop-first&#xFF08;&#x4E32;&#x884C;&#x56DE;&#x6EDA;&#xFF09;&#xFF0C;&#x6216;&#x8005; start-first&#xFF08;&#x5E76;&#x884C;&#x56DE;&#x6EDA;&#xFF09;&#xFF08;&#x9ED8;&#x8BA4; stop-first &#xFF09;&#x3002;</li>
</ul>
</li>
<li><p>update_config&#xFF1A;&#x914D;&#x7F6E;&#x5E94;&#x5982;&#x4F55;&#x66F4;&#x65B0;&#x670D;&#x52A1;&#xFF0C;&#x5BF9;&#x4E8E;&#x914D;&#x7F6E;&#x6EDA;&#x52A8;&#x66F4;&#x65B0;&#x5F88;&#x6709;&#x7528;&#x3002;</p>
<ul>
<li>parallelism&#xFF1A;&#x4E00;&#x6B21;&#x66F4;&#x65B0;&#x7684;&#x5BB9;&#x5668;&#x6570;&#x3002;</li>
<li>delay&#xFF1A;&#x5728;&#x66F4;&#x65B0;&#x4E00;&#x7EC4;&#x5BB9;&#x5668;&#x4E4B;&#x95F4;&#x7B49;&#x5F85;&#x7684;&#x65F6;&#x95F4;&#x3002;</li>
<li>failure_action&#xFF1A;&#x5982;&#x679C;&#x66F4;&#x65B0;&#x5931;&#x8D25;&#xFF0C;&#x8BE5;&#x600E;&#x4E48;&#x529E;&#x3002;&#x5176;&#x4E2D;&#x4E00;&#x4E2A; continue&#xFF0C;rollback &#x6216;&#x8005;pause &#xFF08;&#x9ED8;&#x8BA4;&#xFF1A;pause&#xFF09;&#x3002;</li>
<li>monitor&#xFF1A;&#x6BCF;&#x4E2A;&#x5BB9;&#x5668;&#x66F4;&#x65B0;&#x540E;&#xFF0C;&#x6301;&#x7EED;&#x89C2;&#x5BDF;&#x662F;&#x5426;&#x5931;&#x8D25;&#x4E86;&#x7684;&#x65F6;&#x95F4; (ns|us|ms|s|m|h)&#xFF08;&#x9ED8;&#x8BA4;&#x4E3A;0s&#xFF09;&#x3002;</li>
<li>max_failure_ratio&#xFF1A;&#x5728;&#x66F4;&#x65B0;&#x8FC7;&#x7A0B;&#x4E2D;&#x53EF;&#x4EE5;&#x5BB9;&#x5FCD;&#x7684;&#x6545;&#x969C;&#x7387;&#x3002;</li>
<li>order&#xFF1A;&#x56DE;&#x6EDA;&#x671F;&#x95F4;&#x7684;&#x64CD;&#x4F5C;&#x987A;&#x5E8F;&#x3002;&#x5176;&#x4E2D;&#x4E00;&#x4E2A; stop-first&#xFF08;&#x4E32;&#x884C;&#x56DE;&#x6EDA;&#xFF09;&#xFF0C;&#x6216;&#x8005; start-first&#xFF08;&#x5E76;&#x884C;&#x56DE;&#x6EDA;&#xFF09;&#xFF08;&#x9ED8;&#x8BA4;stop-first&#xFF09;&#x3002;
&#x6CE8;&#xFF1A;&#x4EC5;&#x652F;&#x6301; V3.4 &#x53CA;&#x66F4;&#x9AD8;&#x7248;&#x672C;&#x3002;</li>
</ul>
</li>
</ul>
<h4 id="devices"><a name="devices" class="anchor-navigation-ex-anchor" href="#devices"><i class="fa fa-link" aria-hidden="true"></i></a>devices</h4>
<p>&#x6307;&#x5B9A;&#x8BBE;&#x5907;&#x6620;&#x5C04;&#x5217;&#x8868;&#x3002;</p>
<pre class="language-"><code>devices:
  - &quot;/dev/ttyUSB0:/dev/ttyUSB0&quot;
</code></pre><h4 id="dns"><a name="dns" class="anchor-navigation-ex-anchor" href="#dns"><i class="fa fa-link" aria-hidden="true"></i></a>dns</h4>
<p>&#x81EA;&#x5B9A;&#x4E49; DNS &#x670D;&#x52A1;&#x5668;&#xFF0C;&#x53EF;&#x4EE5;&#x662F;&#x5355;&#x4E2A;&#x503C;&#x6216;&#x5217;&#x8868;&#x7684;&#x591A;&#x4E2A;&#x503C;&#x3002;</p>
<pre class="language-"><code>dns: 8.8.8.8

dns:
  - 8.8.8.8
  - 9.9.9.9
</code></pre><h4 id="dnssearch"><a name="dnssearch" class="anchor-navigation-ex-anchor" href="#dnssearch"><i class="fa fa-link" aria-hidden="true"></i></a>dns_search</h4>
<p>&#x81EA;&#x5B9A;&#x4E49; DNS &#x641C;&#x7D22;&#x57DF;&#x3002;&#x53EF;&#x4EE5;&#x662F;&#x5355;&#x4E2A;&#x503C;&#x6216;&#x5217;&#x8868;&#x3002;</p>
<pre class="language-"><code>dns_search: example.com

dns_search:
  - dc1.example.com
  - dc2.example.com
</code></pre><h4 id="entrypoint"><a name="entrypoint" class="anchor-navigation-ex-anchor" href="#entrypoint"><i class="fa fa-link" aria-hidden="true"></i></a>entrypoint</h4>
<p>&#x8986;&#x76D6;&#x5BB9;&#x5668;&#x9ED8;&#x8BA4;&#x7684; entrypoint&#x3002;</p>
<pre class="language-"><code>entrypoint: /code/entrypoint.sh
</code></pre><p>&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x4EE5;&#x4E0B;&#x683C;&#x5F0F;&#xFF1A;</p>
<pre class="language-"><code>entrypoint:
    - php
    - -d
    - zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
    - -d
    - memory_limit=-1
    - vendor/bin/phpunit
</code></pre><h4 id="envfile"><a name="envfile" class="anchor-navigation-ex-anchor" href="#envfile"><i class="fa fa-link" aria-hidden="true"></i></a>env_file</h4>
<p>&#x4ECE;&#x6587;&#x4EF6;&#x6DFB;&#x52A0;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x3002;&#x53EF;&#x4EE5;&#x662F;&#x5355;&#x4E2A;&#x503C;&#x6216;&#x5217;&#x8868;&#x7684;&#x591A;&#x4E2A;&#x503C;&#x3002;</p>
<pre class="language-"><code>env_file: .env
</code></pre><p>&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x5217;&#x8868;&#x683C;&#x5F0F;&#xFF1A;</p>
<pre class="language-"><code>env_file:
  - ./common.env
  - ./apps/web.env
  - /opt/secrets.env
</code></pre><h4 id="environment"><a name="environment" class="anchor-navigation-ex-anchor" href="#environment"><i class="fa fa-link" aria-hidden="true"></i></a>environment</h4>
<p>&#x6DFB;&#x52A0;&#x73AF;&#x5883;&#x53D8;&#x91CF;&#x3002;&#x60A8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x6570;&#x7EC4;&#x6216;&#x5B57;&#x5178;&#x3001;&#x4EFB;&#x4F55;&#x5E03;&#x5C14;&#x503C;&#xFF0C;&#x5E03;&#x5C14;&#x503C;&#x9700;&#x8981;&#x7528;&#x5F15;&#x53F7;&#x5F15;&#x8D77;&#x6765;&#xFF0C;&#x4EE5;&#x786E;&#x4FDD; YML &#x89E3;&#x6790;&#x5668;&#x4E0D;&#x4F1A;&#x5C06;&#x5176;&#x8F6C;&#x6362;&#x4E3A; True &#x6216; False&#x3002;</p>
<pre class="language-"><code>environment:
  RACK_ENV: development
  SHOW: &apos;true&apos;
</code></pre><h4 id="expose"><a name="expose" class="anchor-navigation-ex-anchor" href="#expose"><i class="fa fa-link" aria-hidden="true"></i></a>expose</h4>
<p>&#x66B4;&#x9732;&#x7AEF;&#x53E3;&#xFF0C;&#x4F46;&#x4E0D;&#x6620;&#x5C04;&#x5230;&#x5BBF;&#x4E3B;&#x673A;&#xFF0C;&#x53EA;&#x88AB;&#x8FDE;&#x63A5;&#x7684;&#x670D;&#x52A1;&#x8BBF;&#x95EE;&#x3002;</p>
<p>&#x4EC5;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x5185;&#x90E8;&#x7AEF;&#x53E3;&#x4E3A;&#x53C2;&#x6570;&#xFF1A;</p>
<pre class="language-"><code>expose:
 - &quot;3000&quot;
 - &quot;8000&quot;
</code></pre><h4 id="extrahosts"><a name="extrahosts" class="anchor-navigation-ex-anchor" href="#extrahosts"><i class="fa fa-link" aria-hidden="true"></i></a>extra_hosts</h4>
<p>&#x6DFB;&#x52A0;&#x4E3B;&#x673A;&#x540D;&#x6620;&#x5C04;&#x3002;&#x7C7B;&#x4F3C; <code>docker client --add-host</code>&#x3002;</p>
<pre class="language-"><code>extra_hosts:
 - &quot;somehost:162.242.195.82&quot;
 - &quot;otherhost:50.31.209.229&quot;
</code></pre><p>&#x4EE5;&#x4E0A;&#x4F1A;&#x5728;&#x6B64;&#x670D;&#x52A1;&#x7684;&#x5185;&#x90E8;&#x5BB9;&#x5668;&#x4E2D; /etc/hosts &#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x5177;&#x6709; ip &#x5730;&#x5740;&#x548C;&#x4E3B;&#x673A;&#x540D;&#x7684;&#x6620;&#x5C04;&#x5173;&#x7CFB;&#xFF1A;</p>
<pre class="language-"><code>162.242.195.82  somehost
50.31.209.229   otherhost
</code></pre><h4 id="healthcheck"><a name="healthcheck" class="anchor-navigation-ex-anchor" href="#healthcheck"><i class="fa fa-link" aria-hidden="true"></i></a>healthcheck</h4>
<p>&#x7528;&#x4E8E;&#x68C0;&#x6D4B; docker &#x670D;&#x52A1;&#x662F;&#x5426;&#x5065;&#x5EB7;&#x8FD0;&#x884C;&#x3002;</p>
<pre class="language-"><code>healthcheck:
  test: [&quot;CMD&quot;, &quot;curl&quot;, &quot;-f&quot;, &quot;http://localhost&quot;] # &#x8BBE;&#x7F6E;&#x68C0;&#x6D4B;&#x7A0B;&#x5E8F;
  interval: 1m30s # &#x8BBE;&#x7F6E;&#x68C0;&#x6D4B;&#x95F4;&#x9694;
  timeout: 10s # &#x8BBE;&#x7F6E;&#x68C0;&#x6D4B;&#x8D85;&#x65F6;&#x65F6;&#x95F4;
  retries: 3 # &#x8BBE;&#x7F6E;&#x91CD;&#x8BD5;&#x6B21;&#x6570;
  start_period: 40s # &#x542F;&#x52A8;&#x540E;&#xFF0C;&#x591A;&#x5C11;&#x79D2;&#x5F00;&#x59CB;&#x542F;&#x52A8;&#x68C0;&#x6D4B;&#x7A0B;&#x5E8F;
</code></pre><h4 id="image"><a name="image" class="anchor-navigation-ex-anchor" href="#image"><i class="fa fa-link" aria-hidden="true"></i></a>image</h4>
<p>&#x6307;&#x5B9A;&#x5BB9;&#x5668;&#x8FD0;&#x884C;&#x7684;&#x955C;&#x50CF;&#x3002;&#x4EE5;&#x4E0B;&#x683C;&#x5F0F;&#x90FD;&#x53EF;&#x4EE5;&#xFF1A;</p>
<pre class="language-"><code>image: redis
image: ubuntu:14.04
image: tutum/influxdb
image: example-registry.com:4000/postgresql
image: a4bc65fd # &#x955C;&#x50CF;id
</code></pre><h4 id="logging"><a name="logging" class="anchor-navigation-ex-anchor" href="#logging"><i class="fa fa-link" aria-hidden="true"></i></a>logging</h4>
<p>&#x670D;&#x52A1;&#x7684;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;&#x914D;&#x7F6E;&#x3002;</p>
<pre class="language-"><code>driver&#xFF1A;&#x6307;&#x5B9A;&#x670D;&#x52A1;&#x5BB9;&#x5668;&#x7684;&#x65E5;&#x5FD7;&#x8BB0;&#x5F55;&#x9A71;&#x52A8;&#x7A0B;&#x5E8F;&#xFF0C;&#x9ED8;&#x8BA4;&#x503C;&#x4E3A;json-file&#x3002;&#x6709;&#x4EE5;&#x4E0B;&#x4E09;&#x4E2A;&#x9009;&#x9879;

driver: &quot;json-file&quot;
driver: &quot;syslog&quot;
driver: &quot;none&quot;
</code></pre><p>&#x4EC5;&#x5728; json-file &#x9A71;&#x52A8;&#x7A0B;&#x5E8F;&#x4E0B;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x53C2;&#x6570;&#xFF0C;&#x9650;&#x5236;&#x65E5;&#x5FD7;&#x5F97;&#x6570;&#x91CF;&#x548C;&#x5927;&#x5C0F;&#x3002;</p>
<pre class="language-"><code>logging:
  driver: json-file
  options:
    max-size: &quot;200k&quot; # &#x5355;&#x4E2A;&#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x4E3A;200k
    max-file: &quot;10&quot; # &#x6700;&#x591A;10&#x4E2A;&#x6587;&#x4EF6;
</code></pre><p>&#x5F53;&#x8FBE;&#x5230;&#x6587;&#x4EF6;&#x9650;&#x5236;&#x4E0A;&#x9650;&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x5220;&#x9664;&#x65E7;&#x5F97;&#x6587;&#x4EF6;&#x3002;</p>
<p>syslog &#x9A71;&#x52A8;&#x7A0B;&#x5E8F;&#x4E0B;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; syslog-address &#x6307;&#x5B9A;&#x65E5;&#x5FD7;&#x63A5;&#x6536;&#x5730;&#x5740;&#x3002;</p>
<pre class="language-"><code>logging:
  driver: syslog
  options:
    syslog-address: &quot;tcp://192.168.0.42:123&quot;
</code></pre><h4 id="networkmode"><a name="networkmode" class="anchor-navigation-ex-anchor" href="#networkmode"><i class="fa fa-link" aria-hidden="true"></i></a>network_mode</h4>
<p>&#x8BBE;&#x7F6E;&#x7F51;&#x7EDC;&#x6A21;&#x5F0F;&#x3002;</p>
<pre class="language-"><code>network_mode: &quot;bridge&quot;
network_mode: &quot;host&quot;
network_mode: &quot;none&quot;
network_mode: &quot;service:[service name]&quot;
network_mode: &quot;container:[container name/id]&quot;
</code></pre><h4 id="networks"><a name="networks" class="anchor-navigation-ex-anchor" href="#networks"><i class="fa fa-link" aria-hidden="true"></i></a>networks</h4>
<p>&#x914D;&#x7F6E;&#x5BB9;&#x5668;&#x8FDE;&#x63A5;&#x7684;&#x7F51;&#x7EDC;&#xFF0C;&#x5F15;&#x7528;&#x9876;&#x7EA7; networks &#x4E0B;&#x7684;&#x6761;&#x76EE; &#x3002;</p>
<pre class="language-"><code>services:
  some-service:
    networks:
      some-network:
        aliases:
         - alias1
      other-network:
        aliases:
         - alias2
networks:
  some-network:
    # Use a custom driver
    driver: custom-driver-1
  other-network:
    # Use a custom driver which takes special options
    driver: custom-driver-2
</code></pre><p><strong>aliases</strong> &#xFF1A;&#x540C;&#x4E00;&#x7F51;&#x7EDC;&#x4E0A;&#x7684;&#x5176;&#x4ED6;&#x5BB9;&#x5668;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x670D;&#x52A1;&#x540D;&#x79F0;&#x6216;&#x6B64;&#x522B;&#x540D;&#x6765;&#x8FDE;&#x63A5;&#x5230;&#x5BF9;&#x5E94;&#x5BB9;&#x5668;&#x7684;&#x670D;&#x52A1;&#x3002;</p>
<h4 id="restart"><a name="restart" class="anchor-navigation-ex-anchor" href="#restart"><i class="fa fa-link" aria-hidden="true"></i></a>restart</h4>
<ul>
<li>no&#xFF1A;&#x662F;&#x9ED8;&#x8BA4;&#x7684;&#x91CD;&#x542F;&#x7B56;&#x7565;&#xFF0C;&#x5728;&#x4EFB;&#x4F55;&#x60C5;&#x51B5;&#x4E0B;&#x90FD;&#x4E0D;&#x4F1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;</li>
<li>always&#xFF1A;&#x5BB9;&#x5668;&#x603B;&#x662F;&#x91CD;&#x65B0;&#x542F;&#x52A8;&#x3002;</li>
<li>on-failure&#xFF1A;&#x5728;&#x5BB9;&#x5668;&#x975E;&#x6B63;&#x5E38;&#x9000;&#x51FA;&#x65F6;&#xFF08;&#x9000;&#x51FA;&#x72B6;&#x6001;&#x975E;0&#xFF09;&#xFF0C;&#x624D;&#x4F1A;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#x3002;</li>
<li>unless-stopped&#xFF1A;&#x5728;&#x5BB9;&#x5668;&#x9000;&#x51FA;&#x65F6;&#x603B;&#x662F;&#x91CD;&#x542F;&#x5BB9;&#x5668;&#xFF0C;&#x4F46;&#x662F;&#x4E0D;&#x8003;&#x8651;&#x5728;Docker&#x5B88;&#x62A4;&#x8FDB;&#x7A0B;&#x542F;&#x52A8;&#x65F6;&#x5C31;&#x5DF2;&#x7ECF;&#x505C;&#x6B62;&#x4E86;&#x7684;&#x5BB9;&#x5668;<pre class="language-"><code>restart: &quot;no&quot;
restart: always
restart: on-failure
restart: unless-stopped
</code></pre>&#x6CE8;&#xFF1A;swarm &#x96C6;&#x7FA4;&#x6A21;&#x5F0F;&#xFF0C;&#x8BF7;&#x6539;&#x7528; restart_policy&#x3002;</li>
</ul>
<h4 id="secrets"><a name="secrets" class="anchor-navigation-ex-anchor" href="#secrets"><i class="fa fa-link" aria-hidden="true"></i></a>secrets</h4>
<p>&#x5B58;&#x50A8;&#x654F;&#x611F;&#x6570;&#x636E;&#xFF0C;&#x4F8B;&#x5982;&#x5BC6;&#x7801;&#xFF1A;</p>
<pre class="language-"><code>version: &quot;3.1&quot;
services:

mysql:
  image: mysql
  environment:
    MYSQL_ROOT_PASSWORD_FILE: /run/secrets/my_secret
  secrets:
    - my_secret

secrets:
  my_secret:
    file: ./my_secret.txt
</code></pre><h4 id="securityopt"><a name="securityopt" class="anchor-navigation-ex-anchor" href="#securityopt"><i class="fa fa-link" aria-hidden="true"></i></a>security_opt</h4>
<p>&#x4FEE;&#x6539;&#x5BB9;&#x5668;&#x9ED8;&#x8BA4;&#x7684; schema &#x6807;&#x7B7E;&#x3002;</p>
<pre class="language-"><code>security-opt&#xFF1A;
  - label:user:USER   # &#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x7684;&#x7528;&#x6237;&#x6807;&#x7B7E;
  - label:role:ROLE   # &#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x7684;&#x89D2;&#x8272;&#x6807;&#x7B7E;
  - label:type:TYPE   # &#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x7684;&#x5B89;&#x5168;&#x7B56;&#x7565;&#x6807;&#x7B7E;
  - label:level:LEVEL  # &#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x7684;&#x5B89;&#x5168;&#x7B49;&#x7EA7;&#x6807;&#x7B7E;
</code></pre><h4 id="stopgraceperiod"><a name="stopgraceperiod" class="anchor-navigation-ex-anchor" href="#stopgraceperiod"><i class="fa fa-link" aria-hidden="true"></i></a>stop_grace_period</h4>
<p>&#x6307;&#x5B9A;&#x5728;&#x5BB9;&#x5668;&#x65E0;&#x6CD5;&#x5904;&#x7406; SIGTERM (&#x6216;&#x8005;&#x4EFB;&#x4F55; stop_signal &#x7684;&#x4FE1;&#x53F7;)&#xFF0C;&#x7B49;&#x5F85;&#x591A;&#x4E45;&#x540E;&#x53D1;&#x9001; SIGKILL &#x4FE1;&#x53F7;&#x5173;&#x95ED;&#x5BB9;&#x5668;&#x3002;</p>
<pre class="language-"><code>stop_grace_period: 1s # &#x7B49;&#x5F85; 1 &#x79D2;
stop_grace_period: 1m30s # &#x7B49;&#x5F85; 1 &#x5206; 30 &#x79D2;
</code></pre><p>&#x9ED8;&#x8BA4;&#x7684;&#x7B49;&#x5F85;&#x65F6;&#x95F4;&#x662F; 10 &#x79D2;&#x3002;</p>
<h4 id="stopsignal"><a name="stopsignal" class="anchor-navigation-ex-anchor" href="#stopsignal"><i class="fa fa-link" aria-hidden="true"></i></a>stop_signal</h4>
<p>&#x8BBE;&#x7F6E;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x7684;&#x66FF;&#x4EE3;&#x4FE1;&#x53F7;&#x3002;&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#x4F7F;&#x7528; SIGTERM &#x3002;</p>
<p>&#x4EE5;&#x4E0B;&#x793A;&#x4F8B;&#xFF0C;&#x4F7F;&#x7528; SIGUSR1 &#x66FF;&#x4EE3;&#x4FE1;&#x53F7; SIGTERM &#x6765;&#x505C;&#x6B62;&#x5BB9;&#x5668;&#x3002;</p>
<pre class="language-"><code>stop_signal: SIGUSR1
</code></pre><h4 id="sysctls"><a name="sysctls" class="anchor-navigation-ex-anchor" href="#sysctls"><i class="fa fa-link" aria-hidden="true"></i></a>sysctls</h4>
<p>&#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x4E2D;&#x7684;&#x5185;&#x6838;&#x53C2;&#x6570;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x6570;&#x7EC4;&#x6216;&#x5B57;&#x5178;&#x683C;&#x5F0F;&#x3002;</p>
<pre class="language-"><code>sysctls:
  net.core.somaxconn: 1024
  net.ipv4.tcp_syncookies: 0

sysctls:
  - net.core.somaxconn=1024
  - net.ipv4.tcp_syncookies=0
</code></pre><h4 id="tmpfs"><a name="tmpfs" class="anchor-navigation-ex-anchor" href="#tmpfs"><i class="fa fa-link" aria-hidden="true"></i></a>tmpfs</h4>
<p>&#x5728;&#x5BB9;&#x5668;&#x5185;&#x5B89;&#x88C5;&#x4E00;&#x4E2A;&#x4E34;&#x65F6;&#x6587;&#x4EF6;&#x7CFB;&#x7EDF;&#x3002;&#x53EF;&#x4EE5;&#x662F;&#x5355;&#x4E2A;&#x503C;&#x6216;&#x5217;&#x8868;&#x7684;&#x591A;&#x4E2A;&#x503C;&#x3002;</p>
<pre class="language-"><code>tmpfs: /run

tmpfs:
  - /run
  - /tmp
</code></pre><h4 id="ulimits"><a name="ulimits" class="anchor-navigation-ex-anchor" href="#ulimits"><i class="fa fa-link" aria-hidden="true"></i></a>ulimits</h4>
<p>&#x8986;&#x76D6;&#x5BB9;&#x5668;&#x9ED8;&#x8BA4;&#x7684; ulimit&#x3002;</p>
<pre class="language-"><code>ulimits:
  nproc: 65535
  nofile:
    soft: 20000
    hard: 40000
</code></pre><h4 id="volumes"><a name="volumes" class="anchor-navigation-ex-anchor" href="#volumes"><i class="fa fa-link" aria-hidden="true"></i></a>volumes</h4>
<p>&#x5C06;&#x4E3B;&#x673A;&#x7684;&#x6570;&#x636E;&#x5377;&#x6216;&#x7740;&#x6587;&#x4EF6;&#x6302;&#x8F7D;&#x5230;&#x5BB9;&#x5668;&#x91CC;&#x3002;</p>
<pre class="language-"><code>version: &quot;3.7&quot;
services:
  db:
    image: postgres:latest
    volumes:
      - &quot;/localhost/postgres.sock:/var/run/postgres/postgres.sock&quot;
      - &quot;/localhost/data:/var/lib/postgresql/data&quot;
</code></pre><h3 id="docker-compose-&#x547D;&#x4EE4;"><a name="docker-compose-&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#docker-compose-&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>docker-compose &#x547D;&#x4EE4;</h3>
<pre class="language-"><code>$ docker-compose --help
Define and run multi-container applications with Docker.

Usage:
  docker-compose [-f <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>arg</span><span class="token punctuation">&gt;</span></span>...] [options] [COMMAND] [ARGS...]
  docker-compose -h|--help

Options:
  -f, --file FILE             Specify an alternate compose file
                              (default: docker-compose.yml)
  -p, --project-name NAME     Specify an alternate project name
                              (default: directory name)
  --verbose                   Show more output
  --log-level LEVEL           Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
  --no-ansi                   Do not print ANSI control characters
  -v, --version               Print version and exit
  -H, --host HOST             Daemon socket to connect to

  --tls                       Use TLS; implied by --tlsverify
  --tlscacert CA_PATH         Trust certs signed only by this CA
  --tlscert CLIENT_CERT_PATH  Path to TLS certificate file
  --tlskey TLS_KEY_PATH       Path to TLS key file
  --tlsverify                 Use TLS and verify the remote
  --skip-hostname-check       Don&apos;t check the daemon&apos;s hostname against the
                              name specified in the client certificate
  --project-directory PATH    Specify an alternate working directory
                              (default: the path of the Compose file)
  --compatibility             If set, Compose will attempt to convert keys
                              in v3 files to their non-Swarm equivalent

Commands:
  build              Build or rebuild services
  bundle             Generate a Docker bundle from the Compose file
  config             Validate and view the Compose file
  create             Create services
  down               Stop and remove containers, networks, images, and volumes
  events             Receive real time events from containers
  exec               Execute a command in a running container
  help               Get help on a command
  images             List images
  kill               Kill containers
  logs               View output from containers
  pause              Pause services
  port               Print the public port for a port binding
  ps                 List containers
  pull               Pull service images
  push               Push service images
  restart            Restart services
  rm                 Remove stopped containers
  run                Run a one-off command
  scale              Set number of containers for a service
  start              Start services
  stop               Stop services
  top                Display the running processes
  unpause            Unpause services
  up                 Create and start containers
  version            Show the Docker-Compose version information
</code></pre><p>&#x5177;&#x4F53;&#x547D;&#x4EE4; &#x90FD;&#x6709; <code>help</code> &#x53EF;&#x4EE5;&#x67E5;&#x64CD;&#x4F5C;
&#x4F8B;&#x5982; <code>scale</code> :</p>
<pre class="language-"><code>$ docker-compose scale --help
Set number of containers to run for a service.

Numbers are specified in the form `service=num` as arguments.
For example:

    $ docker-compose scale web=2 worker=3

This command is deprecated. Use the up command with the `--scale` flag
instead.

Usage: scale [options] [SERVICE=NUM...]

Options:
  -t, --timeout TIMEOUT      Specify a shutdown timeout in seconds.
                             (default: 10)
</code></pre><footer class="page-footer"><span class="copyright">Copyright &#xA9; jisong.fun  all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-04-14 14:06:31
</span></footer> <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css"> <script>     window.klipse_settings = {         selector: ".language-klipse, .lang-eval-clojure",         selector_eval_js: ".lang-eval-js",         selector_eval_python_client: ".lang-eval-python",         selector_eval_php: ".lang-eval-php",         selector_eval_scheme: ".lang-eval-scheme",         selector_eval_ruby: ".lang-eval-ruby",         selector_reagent: ".lang-reagent",        selector_google_charts: ".lang-google-chart",        selector_es2017: ".lang-eval-es2017",        selector_jsx: ".lang-eval-jsx",        selector_transpile_jsx: ".lang-transpile-jsx",        selector_render_jsx: ".lang-render-jsx",        selector_react: ".lang-react",        selector_eval_markdown: ".lang-render-markdown",        selector_eval_lambdaway: ".lang-render-lambdaway",        selector_eval_cpp: ".lang-eval-cpp",        selector_eval_html: ".lang-render-html",        selector_sql: ".lang-eval-sql",        selector_brainfuck: "lang-eval-brainfuck",        selector_js: ".lang-transpile-cljs"    }; </script> <script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="docker-compose安装.html" class="navigation navigation-prev " aria-label="Previous page: docker-compose安装">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../git/0-README.html" class="navigation navigation-next " aria-label="Next page: git">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"docker-compose简化docker命令","level":"4.3.4","depth":2,"next":{"title":"git","level":"4.4","depth":1,"path":"TOOLS/git/0-README.md","ref":"TOOLS/git/0-README.md","articles":[{"title":"git配置多仓库","level":"4.4.1","depth":2,"path":"TOOLS/git/[11769588]git配置多仓库.md","ref":"TOOLS/git/[11769588]git配置多仓库.md","articles":[]},{"title":"各GIt仓库的api","level":"4.4.2","depth":2,"path":"TOOLS/git/各GIt仓库的api.md","ref":"TOOLS/git/各GIt仓库的api.md","articles":[]}]},"previous":{"title":"docker-compose安装","level":"4.3.3","depth":2,"path":"TOOLS/docker/docker-compose安装.md","ref":"TOOLS/docker/docker-compose安装.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-highlight","-livereload","search-plus@^0.0.11","simple-page-toc@^0.1.1","-github@^2.0.0","-github-buttons@2.1.0","-edit-link@^2.0.2","-disqus@^0.1.0","prism@^2.1.0","prism-themes@^0.0.2","advanced-emoji@^0.2.1","anchors@^0.7.1","include-codeblock@^3.0.2","ace@^0.3.2","emphasize@^1.1.0","-katex@^1.1.3","splitter@^0.0.8","mermaid-gb3@2.1.0","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","sectionx@^3.1.0","-donate@^1.0.2","-local-video@^1.0.1","-sitemap-general@^0.1.1","anchor-navigation-ex@0.1.8","favicon@^0.0.2","todo@^0.1.3","3-ba@^0.9.0","-terminal@^0.3.2","-alerts@^0.2.0","include-csv@^0.1.0","puml@^1.0.1","musicxml@^1.0.2","klipse@^1.2.0","-versions-select@^0.1.1","-rss@^3.0.2","-sharing","sharing-plus@^0.0.2","graph@^0.1.0","chart@^0.2.0","summary"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © jisong.fun ","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"include-csv":{},"disqus":{"shortName":"note-book"},"emphasize":{},"ace":{},"github":{"url":"https://gitee.com/ji-song/note-book"},"puml":{},"simple-page-toc":{"maxDepth":3,"skipFirstH1":true},"todo":{},"summary":{"excludeDir":["assets","styles","**/assets","resources"],"readme":"0-README.md","introduction":{"title":"继松的笔记","file":"README.md"}},"splitter":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"graph":{},"donate":{"wechat":"https://ji-song.com/resource/weixin.png","alipay":"https://ji-song.com/resource/alipay.png","title":"","button":"赏","alipayText":"支付宝打赏","wechatText":"微信打赏"},"sitemap-general":{"prefix":"http://gitbook.ji-song.com"},"fontsettings":{"theme":"white","family":"sans","size":2},"rss":{"title":"继松的书","description":"记录点滴","author":"JiSong Sun","feed_url":"http://gitbook.ji-song.com/rss","site_url":"http://gitbook.ji-song.com/","managingEditor":"me@ji-song.com","webMaster":"me@ji-song.com","categories":["gitbook"]},"musicxml":{},"sectionx":{"tag":"b"},"mermaid-gb3":{},"anchor-navigation-ex":{"isRewritePageTitle":false,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"favicon":{"shortcut":"favicon.ico","bookmark":"favicon.ico"},"prism-themes":{},"github-buttons":{"repo":"ji-song/note-book","types":["star"],"size":"small"},"3-ba":{"configuration":"auto","token":"ff100361cdce95dd4c8fb96b4009f7bc"},"expandable-chapters-small":{},"klipse":{"myConfigKey":"it's the default value"},"versions":{"options":[{"value":"http://gitbook.ji-song.com","text":"v3.2.3"},{"value":"http://gitbook.ji-song.com/v2/","text":"v2.6.4"}]},"advanced-emoji":{"embedEmojis":false},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":false,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon","qq","qzone"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":true,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":true},"terminal":{"copyButtons":true,"fade":false,"style":"flat"},"edit-link":{"base":"https://github.com/ji-song/gitbook-use/edit/master","label":"Edit This Page"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"chart":{"type":"c3"},"search-plus":{}},"theme":"default","author":"jisong","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"继松的书","language":"zh-hans","output.name":"site","links":{"sidebar":{"Home":"http://ji-song.gitee.io/cc"}},"gitbook":"3.2.3","description":"记录点滴"},"file":{"path":"TOOLS/docker/docker-compose简化docker命令.md","mtime":"2020-04-14T06:06:31.849Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-14T08:13:26.502Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-ace/ace/ace.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-ace/ace.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sectionx/sectionx.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-3-ba/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-musicxml/osmd.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-musicxml/musicxml.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-musicxml/promise.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

